// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_f;

import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;

// Referenced classes of package com.nnee.f:
//            i, g, b

public class cls_h
    implements cls_i
{

    public cls_h(OutputStream outputstream)
    {
        b = null;
        c = new ArrayList();
        a = outputstream;
        cls_g.a(outputstream, "<?xml version=\"1.0\" encoding=\"utf-8\"?>");
    }

    public void a()
    {
        int j = c.size();
        for(int k = 0; k < j; k++)
            ((cls_b)c.get(k)).a(a);

    }

    public boolean a(cls_b b1)
    {
        boolean flag = false;
        if(b != null)
        {
            b.d(b1);
            flag = true;
        }
        return flag;
    }

    public boolean a(String s)
    {
        boolean flag = false;
        if(b != null)
        {
            cls_b b1 = new cls_b(null, s);
            b.d(b1);
            flag = true;
        }
        return flag;
    }

    public boolean a(String s, String s1)
    {
        boolean flag = false;
        if(b != null)
        {
            b.b(s, s1);
            flag = true;
        }
        return flag;
    }

    public cls_b b(String s, String s1)
    {
        cls_b b1;
        if(b != null)
            b1 = b.a(s, s1);
        else
            b1 = null;
        return b1;
    }

    public boolean b(cls_b b1)
    {
        b = b1;
        c.add(b);
        return true;
    }

    public cls_b c(String s, String s1)
    {
        b = new cls_b(s, s1);
        c.add(b);
        return b;
    }

    public boolean d(String s, String s1)
    {
        b = null;
        c.add(new cls_b(s, s1));
        return true;
    }

    public String toString()
    {
        StringBuilder stringbuilder = new StringBuilder();
        stringbuilder.append("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
        int j = c.size();
        for(int k = 0; k < j; k++)
            stringbuilder.append(((cls_b)c.get(k)).toString());

        return stringbuilder.toString();
    }

    private OutputStream a;
    private cls_b b;
    private List c;
}
